package com.java.day04.arr;

/**
 * 遍历数组
 */
public class Demo02 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        String[] arr2 = {"a","b","c"};
        System.out.print("[ ");
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
        System.out.println("]");

        ArrUtils.printArrInt(arr);

        ArrUtils.printArrString(arr2);
    }

}
